package cn.wuxing.mediation.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.wuxing.mediation.common.annotation.Excel;
import cn.wuxing.mediation.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 【请填写功能名称】对象 cm_message_notifications
 *
 * @author mediation
 * @date 2024-10-08
 */
public class MessageNotifications extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息通知id */
    private Long id;

    /** 纠纷事件id */
    @Excel(name = "纠纷事件id")
    private Long eventId;

    /** 纠纷事件类型 */
    @Excel(name = "纠纷事件类型")
    private Integer eventCategory;

    /** 乡镇街道社会治理中心id、窗口id、调解委员会id */
    @Excel(name = "乡镇街道社会治理中心ID")
    private Long windowMediationTownshipId;

    /* 1、专窗  2、乡镇街道社会治理中心 3、调解委员会 */
    @Excel(name = "乡镇街道社会治理中心ID")
    private String windowMediationTownship;

    /** 乡镇街道社会治理中心ID  0:未查看 1:已查看 */
    @Excel(name = "是否查看")
    private String clickFlag;

    private String accountId;//用户id  多个用,分割

    private String eventCode;//纠纷编号

    public String getEventCode() {
        return eventCode;
    }

    public void setEventCode(String eventCode) {
        this.eventCode = eventCode;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    public String getClickFlag() {
        return clickFlag;
    }

    public void setClickFlag(String clickFlag) {
        this.clickFlag = clickFlag;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEventId(Long eventId)
    {
        this.eventId = eventId;
    }

    public Long getEventId()
    {
        return eventId;
    }
    public void setEventCategory(Integer eventCategory)
    {
        this.eventCategory = eventCategory;
    }

    public Integer getEventCategory()
    {
        return eventCategory;
    }

    public Long getWindowMediationTownshipId() {
        return windowMediationTownshipId;
    }

    public void setWindowMediationTownshipId(Long windowMediationTownshipId) {
        this.windowMediationTownshipId = windowMediationTownshipId;
    }

    public String getWindowMediationTownship() {
        return windowMediationTownship;
    }

    public void setWindowMediationTownship(String windowMediationTownship) {
        this.windowMediationTownship = windowMediationTownship;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("eventId", getEventId())
            .append("eventCategory", getEventCategory())
                .append("windowMediationTownshipId", getWindowMediationTownshipId())
                .append("windowMediationTownship", getWindowMediationTownship())
            .append("createTime", getCreateTime())
            .toString();
    }
}
